<pre style="line-height: 100%;font-family:monospace;background-color:#ffffff; border-width:0.01mm; border-color:#000000; border-style:solid;padding:4px;font-size:10pt;"><span style="color:#808080;background-color:#ffffff;">/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


</span><span style="color:#000080;background-color:#ffffff;">package</span><span style="background-color:#ffffff;"> jsp2.examples;

</span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">class</span><span style="background-color:#ffffff;"> BookBean {
    </span><span style="color:#000080;background-color:#ffffff;">private</span><span style="background-color:#ffffff;"> String </span><span style="color:#660e7a;background-color:#ffffff;">title;
</span><span style="background-color:#ffffff;">    </span><span style="color:#000080;background-color:#ffffff;">private</span><span style="background-color:#ffffff;"> String </span><span style="color:#660e7a;background-color:#ffffff;">author;
</span><span style="background-color:#ffffff;">    </span><span style="color:#000080;background-color:#ffffff;">private</span><span style="background-color:#ffffff;"> String </span><span style="color:#660e7a;background-color:#ffffff;">isbn;
</span><span style="background-color:#ffffff;">
    </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> BookBean( String title, String author, String isbn ) {
        </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">title </span><span style="background-color:#ffffff;">= title;
        </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">author </span><span style="background-color:#ffffff;">= author;
        </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">isbn </span><span style="background-color:#ffffff;">= isbn;
    }

    </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> String getTitle() {
        </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">title;
</span><span style="background-color:#ffffff;">    }

    </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> String getAuthor() {
        </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">author;
</span><span style="background-color:#ffffff;">    }

    </span><span style="color:#000080;background-color:#ffffff;">public</span><span style="background-color:#ffffff;"> String getIsbn() {
        </span><span style="color:#000080;background-color:#ffffff;">return</span><span style="background-color:#ffffff;"> </span><span style="color:#000080;background-color:#ffffff;">this</span><span style="background-color:#ffffff;">.</span><span style="color:#660e7a;background-color:#ffffff;">isbn;
</span><span style="background-color:#ffffff;">    }

}</span></pre>